package com.qidianit.mes.md.mapper;

import com.qidianit.mes.pojo.MaterialClassify;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @Author 奇幻夜之梦
 * @Company 起点编程
 * @Description
 * @Time 2024/10/16 1:13
 */
public interface ClassifyMapper {
    int save(MaterialClassify materialClassify);

    MaterialClassify selectByName(String classifyName);

    MaterialClassify selectById(Long classifyId);

    int updateById(MaterialClassify materialClassify);

    List<MaterialClassify> selectList(MaterialClassify materialClassify, @Param("parentId") Long parentId);

    int countSubclassify(@Param("classifyId") Long classifyId);

    List<MaterialClassify> selectByParentId(Long parentId);
}

